package number

import (
	"github.com/google/wire"
	"sieve_admin_server_userpass/app/api/util"
	"sieve_admin_server_userpass/app/server"
)

var _ util.API = (*SelectedAPI)(nil)

var SelectedSet = wire.NewSet(wire.Struct(new(SelectedAPI), "*"))

type SelectedAPI struct {
	util.EmptyAPI
}

func (a *SelectedAPI) GetApis() []*server.BatchModTree {
	return []*server.BatchModTree{
		{
			Obj:   a,
			Name:  "selected",
			Title: "全球号码生成", Perms: []*server.Perm{
				{Name: "queryCities", Title: "查询城市"},
				{Name: "queryDistrictCodes", Title: "查询区号"},
				{Name: "queryDistrictSegs", Title: "查询号段"},
				{Name: "createTask", Title: "创建生成号码任务"},
			},
			Order: 9,
		},
	}
}
